
#include "tp2.h"
#include "tiempo.h"

void cropflip_c    (
	unsigned char *src,
	unsigned char *dst,
	int cols,
	int filas,
	int src_row_size,
	int dst_row_size,
	int tamx,
	int tamy,
	int offsetx,
	int offsety)
{

	unsigned char (*src_matrix)[src_row_size] = (unsigned char (*)[src_row_size]) src;
	unsigned char (*dst_matrix)[dst_row_size] = (unsigned char (*)[dst_row_size]) dst;
	
		
	for(int i = 0; i < tamy; i++)
	{
		for(int j = 0; j < tamx*4; j++)
		{
		dst_matrix[i][j] = src_matrix[tamy + offsety - i - 1][offsetx*4 + j];
		}

	}


}
